package com.sjd.mall.domain.dto.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 订单提交
 * 购物车
 *
 * @author seer
 * @date 2022/1/12 23:58
 */
@ApiModel
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
public class WxOrderCreateCartRequestDTO {

    @ApiModelProperty(
            value = "收货地址ID",
            required = true
    )
    private Long addressId;

    @ApiModelProperty(
            value = "购物车ID数组",
            required = true
    )
    @NotNull(message = "shoppingCartIds is null")
    private List<Long> shoppingCartIds;
}
